<?php
namespace app\model;

use support\Model;

class ArticleModel extends Model
{
    protected $table = 'articles';
    
    protected $fillable = ['title', 'slug', 'category_id', 'summary', 'content', 'thumbnail', 'author_id', 'view_count', 'comment_count', 'is_top', 'status', 'published_at', 'created_at', 'updated_at'];
    
    protected $hidden = [''];
    
    protected $casts = array (
  'published_at' => 'datetime',
  'created_at' => 'datetime',
  'updated_at' => 'datetime',
);
} 